package com.yuye.test.order.impl;

import com.yuye.application.custom.OrderCustomService;
import com.yuye.test.order.DemoService;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Service;

@Service
@Order(2)
public class DemoServiceImpl02 extends OrderCustomService implements DemoService {

    public DemoServiceImpl02() {
        System.out.println("DemoServiceImpl02被实例化了");
    }

    @Override
    public void say() {
        System.out.println("DemoServiceImpl02被执行了");
    }
//
//    @Override
//    public int getOrder() {
//        return 2;
//    }
}